package com.vue.controller.teacher;

import com.vue.entity.PaperQuestion;
import com.vue.entity.Question;
import com.vue.result.Result;
import com.vue.service.ExamService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController("teacherExamController")
@RequestMapping("/teacher/exam")
@Api(tags = "教师考试相关接口")
@Slf4j
public class ExamController {

    @Autowired
    private ExamService examService;

    /**
     * 考试页面
     * @return
     */
    @GetMapping
    @ApiOperation("考试页面")
    public Result<Question> examList() {

        Question question = examService.examList();
        return Result.success(question);
    }
}
